package demo.pattern.builder;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : GuoFei
 * @since : 2019/6/25 17:03
 */
public class Meal {
    private List<Item> items = new ArrayList<Item>();

    public void addItem(Item item){
        items.add(item);
    }

    public void showItems(){
        for (Item item : items) {
            System.out.println("菜单项 : "+item.name());
        }
    }
}
